﻿<UserControl x:Class="ETRobocon.RaceTraking.GamePresentation.UserControlClearMark"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="40" Width="40">
    <Canvas>
        <Path Name="ClearedMark1" Stroke="Red" StrokeThickness="5">
            <Path.Data>
                <EllipseGeometry RadiusX="10" RadiusY="10" Center="20,20"/>
            </Path.Data>
            <Path.BitmapEffect>
                <OuterGlowBitmapEffect></OuterGlowBitmapEffect>
            </Path.BitmapEffect>
        </Path>
        <Path Name="ClearedMark2" Stroke="Red" StrokeThickness="5">
            <Path.Data>
                <EllipseGeometry RadiusX="17" RadiusY="17" Center="20,20"/>
            </Path.Data>
            <Path.BitmapEffect>
                <OuterGlowBitmapEffect></OuterGlowBitmapEffect>
            </Path.BitmapEffect>
        </Path>
        <Canvas.Triggers>
            <EventTrigger RoutedEvent="Canvas.Loaded">
                <BeginStoryboard>
                    <Storyboard RepeatBehavior="Forever" AutoReverse="True">
                        <DoubleAnimation
                            Storyboard.TargetName="ClearedMark1"
                            Storyboard.TargetProperty="Opacity"
                            From="0" To="1" Duration="0:0:2.1"/>
                        <DoubleAnimation
                            Storyboard.TargetName="ClearedMark2"
                            Storyboard.TargetProperty="Opacity"
                            From="0" To="1" Duration="0:0:2.3"/>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Canvas.Triggers>
    </Canvas>
            
    
</UserControl>
